#ifndef LIBUCW_NET_H
#define LIBUCW_NET_H

typedef struct UNET_ADDR UNET_ADDR;

int UNetStartup();

int UNetCleanup();

UNET_ADDR *UNetAddressGet(const char *Host, const char *Serve);

void UNetAddressRelease(UNET_ADDR *Address);

int UNetTcpListen(UNET_ADDR *Address, int Backlog);

int UNetTcpConnect(UNET_ADDR *Address, int Block);

void UNetClose(int Sock);

#endif // LIBUCW_NET_H
